from django.conf.urls import url
from . import views
from rest_framework.routers import DefaultRouter

urlpatterns = []


# 創建DefaultRouter
router = DefaultRouter()

# 注冊視圖集
router.register(r'infos',views.AreaInfoView,base_name="areas")

# 添加到urlpatterns
urlpatterns += router.urls